﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StringBuilderExample
{
    class Program
    {
        static void Main(string[] args)
        {
            StringBuilder builder = new StringBuilder();

            builder.Append('-', 10)
                    .AppendLine()
                    .Append("SomeText")
                    .Append("3")
                    .AppendLine()
                    .Append('-', 10)
                    .Replace('-', '+')
                    .Remove(0, 9);
            Console.WriteLine(builder);

            Console.WriteLine("First char: {0}",builder[0]);
        }
    }
}
